package ch3;

import java.util.Scanner;

public class Race100 {

	public static void main(String[] args) {
		// String a = "进入了男子组参加决赛";
		// String b = "进入了女子组参加决赛";
		Scanner in = new Scanner(System.in);
		System.out.println("请输入选手苏大强的成绩：");
		double race = in.nextDouble();
		System.out.println("输入性别(1.男；2.女)：");
		String sex = in.next();

		if (race <= 10) {
			System.out.println("恭喜进入决赛！");
			if (sex.equals("男")) {
				System.out.println("进入了男子组参加决赛");
			} else if (sex.equals("女")) {
				System.out.println("进入了女子组参加决赛");
			} else {
				System.out.println("输入的非人类，错误");
			}
		} else {
			System.out.println("对不起，你被淘汰了");
		}
	}

}
